<template>
  <svg   aria-hidden="true" class="svg-icon" :width="props.size"  :height="props.size" >
    <use :xlink:href="symbolId" :class="props.cl" rel="external nofollow"  :fill="props.color" />
  </svg>
</template>
<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps({
  prefix: {
    type: String,
    default: 'icon'
  },
  cl: {
    type: String,
  },
  name: {
    type: String,
    required: true
  },
  color: {
    type: String,
    default: '#000'
  },
  size: {
    type: String,
    default: '20px'
  }
})
const symbolId = computed(() => `#${props.prefix}-${props.name}`)
</script>
<style  lang="stylus" >
.icon{
  // fill:currentColor;
  // fill #fff !important
}
</style>